
package com.cmc.dao;

import java.util.List;

import com.cmc.dao.Dao;
import com.cmc.model.SystemRight;

public interface SystemRightDao extends Dao {

    /**
     * Retrieves all of the systemRights
     */
    public List getSystemRights(SystemRight systemRight);

    /**
     * Gets systemRight's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the systemRight's id
     * @return systemRight populated systemRight object
     */
    public SystemRight getSystemRight(final Long id);

    /**
     * Saves a systemRight's information
     * @param systemRight the object to be saved
     */    
    public void saveSystemRight(SystemRight systemRight);

    /**
     * Removes a systemRight from the database by id
     * @param id the systemRight's id
     */
    public void removeSystemRight(final Long id);
}

